const Router = require("koa-router");

const { auth } = require("../middleware/auth.middleware");

const {
  getAppGoodsList,
  getAppGoodsDetail,
  getHotAndNewGoods,
} = require("../controller/appGoods.controller");

const router = new Router({ prefix: "/appGoods" });

// 获取商品列表
router.get("/getAppGoodsList", getAppGoodsList);

// 获取商品详情
router.get("/getAppGoodsDetail", getAppGoodsDetail);

// 获取热点商品以及新品
router.get("/getHotAndNewGoods", getHotAndNewGoods);

module.exports = router;
